package cn.lovelysia.ymcc.feignclient;

import cn.lovelysia.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-user")
public interface IUserFeignClient {

    @RequestMapping(value = "/user/findByPhone/{phone}",method = RequestMethod.GET)
    public JSONResult findByPhone(@PathVariable("phone")String phone);

}
